<?php
namespace App\Admin\Models;
use Common\BaseModel;
class ArticleFaquanCate extends BaseModel
{
    protected $res;
    public $key;
    public function initialize()
    {
        parent::initialize();
        $this->setSource('f_article_faquancate');
    }

    /**
     * 获取具体的内容
     * @param int $cid 栏目id
     * @param int $cateid 分类id
     * @param int $is_recommend 是否首页推荐
     * @return mixed
     */
    public function find_list(){
        $conditions='';
        $order="sort ASC,id ASC";
        $user_list = $this::find(
            array(
                $conditions,
                "order" => $order,
            )
        );
        return $user_list;
    }


    public function find_by_id($id){
        $cate_info = $this->findFirstById($id);
        if($cate_info){
            return $cate_info->toarray();
        }else{
            return [];
        }
    }


    public function save_params($params){
        return $this::save($params);
    }





}
